export const layoutParse = (h, layoutConfig) => {
  const { row } = layoutConfig;
  const { cols } = row;
  console.log(cols);
  const list = cols.map((col) => {
    const dynamicBind = {
      props: { ...col },
    };
    const { children } = col;

    return (
      <el-col style={{ height: "20px" }} {...dynamicBind}>
        {children}
      </el-col>
    );
  });
  return <el-row {...row.attr}>{list}</el-row>;
};

export default {
  layoutParse,
};
